package com.max.xihu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class XihuApplication {

    public static void main(String[] args) {
        SpringApplication.run(XihuApplication.class, args);
    }


//    @Bean
//    public Redisson redisson(){
//        Config config = new Config();
//        config.useSingleServer().setAddress("redis://localhost:6379").setDatabase(0);
//       /* config.useClusterServers()
//                .addNodeAddress("redis://192.168.0.100:8011")
//                .addNodeAddress("redis://192.168.0.100:8012")
//                .addNodeAddress("redis://192.168.0.100:8013")
//                .addNodeAddress("redis://192.168.0.100:8014")
//                .addNodeAddress("redis://192.168.0.100:8015");*/
//        return (Redisson) Redisson.create(config);
//    }

}
